package com.sijiao.logapp.service.impl;

import com.sijiao.difflog.service.IGetOriginalService;
import com.sijiao.logapp.entity.Grade;
import com.sijiao.logapp.entity.Student;
import com.sijiao.logapp.entity.Teacher;
import org.springframework.stereotype.Service;

import java.util.LinkedList;
import java.util.List;

@Service
public class LogStudentOriginalServiceImpl implements IGetOriginalService {
    @Override
    public Object getOriginal(String id) {
        Teacher teacher1 = new Teacher(1L, "赵老师", "语文");
        Teacher teacher2 = new Teacher(4L, "王老师", "物理");
        List<Teacher> teacherList = new LinkedList<>();
        teacherList.add(teacher1);
        teacherList.add(teacher2);
        List<String> avatars = new LinkedList<>();
        avatars.add("avatar3");
        avatars.add("avatar2");


        Student student = new Student();
        student.setName("小四");
        student.setId(5L);
        student.setTeachers(teacherList);
        student.setAvatars(avatars);

        Grade grade=new Grade();
        grade.setId(1L);
        grade.setName("二年级");
        student.setGrade(grade);

        return student;
    }
}
